package com.rock.code.common.comm;

import com.p6spy.engine.common.P6Util;
import com.p6spy.engine.spy.appender.MessageFormattingStrategy;

public class CustomSqlFormat implements MessageFormattingStrategy {
    @Override
    public String formatMessage(final int connectionId, final String now, final long elapsed, final String category,
                                final String prepared, final String sql) {
        return now + "|" + elapsed + "|" + category + "|connection " + connectionId //+ "|" + P6Util.singleLine(prepared)
                + "|" + P6Util.singleLine(sql);
    }
}

